<?php
class FrmMenu{
    private $setter;
    //private $divContentIcons;
    private $iconBoxMenu;
    
    public function __construct() {
        $this->setter=new Setter($configurationsPath="../Config");
        
        //$this->divContentIcons=new Div($name="divContentIcons", $id="divContentIcons", $class="menu", $events=array(),$height="",$width="",$top="",$left="", $visibility="");
        
        $this->iconBoxMenu=new IconBox($iconHeight="128", $iconWidth="128", $iconPadding="4", $iconSpacing="4", $iconText="yes", $containerClass="container", $iconClass="icon");
            $sections=explode("_", $_SESSION['sections']);
            
            if(count($sections)==3){
            $this->iconBoxMenu->addIcon($iconName="users", $iconId="users",$iconAlt="noAlt", $iconValue="Users", $iconNote="users", $iconSrc="../Themes/".$this->setter->getTheme()."/Images/users.png", $iconTitle="Users", $iconType="button", $eventsList=array("onclick"=>"POSTMethodSend('users','divContent','../Events/EventsFrmMenu.php')"));
            }
            $this->iconBoxMenu->addIcon($iconName="changeTheme", $iconId="changeTheme",$iconAlt="noAlt", $iconValue="change Theme", $iconNote="change theme", $iconSrc="../Themes/".$this->setter->getTheme()."/Images/changeTheme.png", $iconTitle="Change theme", $iconType="button", $eventsList=array("onclick"=>"POSTMethodSend('changeTheme','divContent','../Events/EventsFrmMenu.php')"));
            $this->iconBoxMenu->addIcon($iconName="UploadScriptJS", $iconId="UploadScriptJS",$iconAlt="noAlt", $iconValue="Upload Script JS", $iconNote="Upload Script JS", $iconSrc="../Themes/".$this->setter->getTheme()."/Images/uploadScriptJS.png", $iconTitle="Upload Script JS", $iconType="button", $eventsList=array("onclick"=>"POSTMethodSend('UploadScriptJS','divContent','../Events/EventsFrmMenu.php')"));
            $this->iconBoxMenu->addIcon($iconName="RegisterComponent", $iconId="RegisterComponent",$iconAlt="noAlt", $iconValue="RegisterComponent", $iconNote="RegisterComponent", $iconSrc="../Themes/".$this->setter->getTheme()."/Images/registerComponent.png", $iconTitle="Register Script SCI", $iconType="button", $eventsList=array("onclick"=>"POSTMethodSend('RegisterComponent','divContent','../Events/EventsFrmMenu.php')"));
            $this->iconBoxMenu->addIcon($iconName="ExeComponent", $iconId="ExeComponent",$iconAlt="noAlt", $iconValue="ExeComponent", $iconNote="ExeComponent", $iconSrc="../Themes/".$this->setter->getTheme()."/Images/exeComponent.png", $iconTitle="Component Execute ", $iconType="button", $eventsList=array("onclick"=>"POSTMethodSend('ExeComponent','divContent','../Events/EventsFrmMenu.php')"));
    }
    
    public function setVisible($visible=TRUE){
        if($visible==TRUE){
                $this->iconBoxMenu->show($cols=1, $rows=5);
        }
    }


}

?>
